🎖️GitЯра🎖️
Node / meshtastic / Meshtastic-Android / files / core / ble / src / commonMain / kotlin / org / meshtastic / core / ble / BleScanStartException.kt
Displaying Raw • Download
core/ble/src/commonMain/kotlin/org/meshtastic/core/ble/BleScanStartException.kt 41366bb48d5dc06c1da80d2d723848ec29fb12bc (41366bb4) Text, 1.81 KB
T8b949e/*
* Copyright (c) 2026 Meshtastic LLC
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
Tff7b72package T7ee787org.meshtastic.core.ble
Tff7b72import T7ee787kotlin.time.Duration
T8b949e/** Known reasons a BLE discovery scan failed before Android registered the scanner. */
Tff7b72enum Tff7b72class T56d364BleScanStartFailureReasonTb4b4b4(Tff7b72val Te6edf3androidCodeTb4b4b4: Tffa657StringTb4b4b4, Tff7b72val Te6edf3descriptionTb4b4b4: Tffa657StringTb4b4b4) Tb4b4b4{
Te6edf3ApplicationRegistrationFailedTb4b4b4(
Te6edf3androidCode Tff7b72= Ta5d6ff"Ta5d6ffSCAN_FAILED_APPLICATION_REGISTRATION_FAILED(2)Ta5d6ff"Tb4b4b4,
Te6edf3description Tff7b72= Ta5d6ff"Ta5d6ffAndroid could not register the app for BLE scanningTa5d6ff"Tb4b4b4,
Tb4b4b4)Tb4b4b4,
Te6edf3MissingScanPermissionTb4b4b4(
Te6edf3androidCode Tff7b72= Ta5d6ff"Ta5d6ffMISSING_SCAN_PERMISSIONTa5d6ff"Tb4b4b4,
Te6edf3description Tff7b72= Ta5d6ff"Ta5d6ffA runtime permission required for BLE scanning is not grantedTa5d6ff"Tb4b4b4,
Tb4b4b4)Tb4b4b4,
Te6edf3ScanningTooFrequentlyTb4b4b4(
Te6edf3androidCode Tff7b72= Ta5d6ff"Ta5d6ffSCAN_FAILED_SCANNING_TOO_FREQUENTLY(6)Ta5d6ff"Tb4b4b4,
Te6edf3description Tff7b72= Ta5d6ff"Ta5d6ffAndroid rejected a BLE scan because the app reached its scan-start quotaTa5d6ff"Tb4b4b4,
Tb4b4b4)Tb4b4b4,
Tb4b4b4}
T8b949e/** A discovery scan-start failure. No advertisements can be delivered until a future scan starts successfully. */
Tff7b72class T56d364BleScanStartExceptionTb4b4b4(Tff7b72val Te6edf3reasonTb4b4b4: Te6edf3BleScanStartFailureReasonTb4b4b4, Te6edf3causeTb4b4b4: Te6edf3ThrowableTb4b4b4, Tff7b72val Te6edf3retryAfterTb4b4b4: Te6edf3Duration? Tff7b72= Tff7b72nullTb4b4b4) Tb4b4b4:
Te6edf3IllegalStateExceptionTb4b4b4(Ta5d6ff"Ta5d6ffBLE scan could not start: Tffd700${Te6edf3reasonTb4b4b4.Te6edf3androidCodeTffd700}Ta5d6ff"Tb4b4b4, Te6edf3causeTb4b4b4)
Served by rngit 1.5.3 - Generated in 0.13s